#include <iostream>
#include <string>
using namespace std;

int main() {
    string s;  //文章标题
    int ans = 0;

    while (cin >> s)
        ans += s.length();
    cout << ans << endl;
    return 0;

}